
/*第一个*/
.first {
  margin: 100px auto;
  width: 50px;
  height: 60px;
  text-align: center;
}

.first > div {
  background-color: #67CF22;
  height: 100%;
  width: 6px;
  display: inline-block;
  margin-right: 2px;

  /*ease-in-out:以慢速开始和结束*/
  animation: stretchdelay 1.2s infinite ease-in-out;
}

.first .rect2 {
  animation-delay: -1.1s;
}

.first .rect3 {
  animation-delay: -1.0s;
}

.first .rect4 {
  animation-delay: -0.9s;
}

.first .rect5 {
  animation-delay: -0.8s;
}

@keyframes stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
  }
}

/*第二个*/
.second {
  width: 60px;
  height: 60px;
  background-color: #67CF22;

  margin: 100px auto;
  animation: rotateplane 1.2s infinite ease-in-out;
}

/*perspective:元素距离视图的距离*/
@keyframes rotateplane {
  0% {
    transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  } 50% {
      transform: perspective(120px) rotateX(-180deg) rotateY(0deg);
    } 100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-180deg);
      }
}

/*第三个*/
.third {
  width: 60px;
  height: 60px;

  position: relative;
  margin: 100px auto;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #67CF22;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;

  animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}


@keyframes bounce {
  0%, 100% {
    transform: scale(0);
  } 50% {
      transform: scale(1);
    }
}

/*第四个*/
.fourth {
  margin: 100px auto;
  width: 32px;
  height: 32px;
  position: relative;
}

.cube1, .cube2 {
  background-color: #67CF22;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  left: 0;

  animation: cubemove 1.8s infinite ease-in-out;
}

.cube2 {
  animation-delay: -0.9s;
}


@keyframes cubemove {
  25% {
    transform: translateX(42px) rotate(-90deg) scale(0.5);
  } 50% {
      transform: translateX(42px) translateY(42px) rotate(-179deg);
    } 50.1% {
        transform: translateX(42px) translateY(42px) rotate(-180deg);
      } 75% {
          transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
        } 100% {
            transform: rotate(-360deg);
          }
}

/*第五个*/
.fifth {
  margin: 100px auto;
  width: 90px;
  height: 90px;
  position: relative;
  text-align: center;

  animation: rotate 2.0s infinite linear;
}

.dot1, .dot2 {
  width: 60%;
  height: 60%;
  display: inline-block;
  position: absolute;
  top: 0;
  background-color: #67CF22;
  border-radius: 50%;

  animation: bounce 2.0s infinite ease-in-out;
}

.dot2 {
  top: auto;
  bottom: 0px;
  animation-delay: -1.0s;
}


@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}


@keyframes bounce {
  0%, 100% {
    transform: scale(0);
  } 50% {
      transform: scale(1);
    }
}

/*第六个*/
.sixth {
  margin: 100px auto 0;
  width: 150px;
  text-align: center;
}

.sixth > div {
  width: 30px;
  height: 30px;
  background-color: #67CF22;

  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out;
}

.sixth .bounce1 {
  animation-delay: -0.32s;
}

.sixth .bounce2 {
  animation-delay: -0.16s;
}


@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  } 40% {
      transform: scale(1);
    }
}

/*第七个*/
.seventh {
  width: 40px;
  height: 40px;
  margin: 100px auto;
  background-color: #67CF22;

  border-radius: 50%;
  animation: scaleout 1.0s infinite ease-in-out;
}


@keyframes scaleout {
  0% {
    transform: scale(0);
  } 100% {
      transform: scale(3);
      opacity: 0;
    }
}

/*第八个*/
.eighth {
  margin: 100px auto;
  width: 50px;
  height: 50px;
  position: relative;
}

.container1 > div, .container2 > div, .container3 > div {
  width: 6px;
  height: 6px;
  background-color: #67CF22;

  border-radius: 100%;
  position: absolute;
  animation: bouncedelay 1.2s infinite ease-in-out;
}

.eighth .eighth-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

.container2 {
  transform: rotateZ(45deg);
}

.container3 {
  transform: rotateZ(90deg);
}

.circle1 { top: 0; left: 0; }
.circle2 { top: 0; right: 0; }
.circle3 { right: 0; bottom: 0; }
.circle4 { left: 0; bottom: 0; }

.container2 .circle1 {
  animation-delay: -1.1s;
}

.container3 .circle1 {
  animation-delay: -1.0s;
}

.container1 .circle2 {
  animation-delay: -0.9s;
}

.container2 .circle2 {
  animation-delay: -0.8s;
}

.container3 .circle2 {
  animation-delay: -0.7s;
}

.container1 .circle3 {
  animation-delay: -0.6s;
}

.container2 .circle3 {
  animation-delay: -0.5s;
}

.container3 .circle3 {
  animation-delay: -0.4s;
}

.container1 .circle4 {
  animation-delay: -0.3s;
}

.container2 .circle4 {
  animation-delay: -0.2s;
}

.container3 .circle4 {
  animation-delay: -0.1s;
}


@keyframes bouncedelay {
  0%, 80%, 100% {
    transform: scale(0);
  } 40% {
      transform: scale(2);
    }
}